package by.amakarevich.dataaccess;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import by.amakarevich.datamodel.Discount;


public interface DiscountDao extends AbstractDao<Long, Discount> {
	Long getCount();

    List<Discount> getAllDiscount();

    List<Discount> getAllDiscount(SingularAttribute<Discount, ?> attr, boolean ascending, int startRecord, int pageSize);

    List<Discount> getAllDiscountByProduct(String name);

    void updateDiscountPrice(Long id, String newPrice);
}
